/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Service;

/**
 *
 * @author Nhan Nguyen
 */

public class CardConstant {

    public static final int SPADE = 0;
    public static final int CLUB = 1;
    public static final int DIAMOND = 2;
    public static final int HEART = 3;
    public static final int JACK = 11;
    public static final int QUEEN = 12;
    public static final int KING = 13;
    public static final int ACE = 14;
    public static final int PIG = 15;
    // moveType
    public static final int MOVE_SINGLE = 1;// mot quan
    public static final int MOVE_DOI = 2;// doi
    public static final int MOVE_TAMCO = 3;// tam co
    public static final int MOVE_SANH = 4;// sanh
    public static final int MOVE_BADOITHONG = 10;// ba doi thong
    public static final int MOVE_BONDOITHONG = 12;// bon doi thong
    public static final int MOVE_TUQUI = 11;// tu qui
    public static final int MOVE_INVALID = -1; // Khong hop le
    public static final int MOVE_SINGLE_HEODEN = 16;
    public static final int MOVE_SINGLE_HEODO = 17;
    public static final int MOVE_DOI_DENDEN = 18;
    public static final int MOVE_DOI_DENDO = 19;
    public static final int MOVE_DOI_DODO = 20;

    public static final int THUA_BINH_THUONG = 0;
    public static final int THUA_CONG = 1;
    public static final int THUA_TRANG = 2;
    
    public static final int UNG_HEODEN = 0;
    public static final int UNG_HEODO = 1;
    public static final int UNG_BADOITHONG = 2;
    public static final int UNG_BONDOITHONG = 3;
    public static final int UNG_TUQUY = 4;
    public static final int UNG_BABICH = 5;

    public static final byte JOIN_OK = 1;
    public static final byte JOIN_ERROR_BLOCK_TABLE = 2;
    public static final byte JOIN_ERROR_NOT_ENOUGH_MONEY = 3;
    public static final byte JOIN_ERROR_PASSWORD_REQUIRED = 4;
    public static final byte JOIN_ERROR_WRONG_PASSWORD = 5;
    
    public static final byte AN_TRANG_BON_3 = 11;
    public static final byte AN_TRANG_BON_2 = 12;
    public static final byte AN_TRANG_SANH_RONG = 13;
    public static final byte AN_TRANG_6_DOI = 14;
    public static final byte AN_TRANG_5_DOI_THONG = 15;
    public static final byte AN_TRANG_3_DOI_THONG_3_BICH = 16;

    public static final int TWO_PLAYERS = 2;
    public static final int THREE_PLAYERS = 3;
    public static final int FOUR_PLAYERS = 4;

    public static final int FIRST = 0;
    public static final int SECOND = 1;
    public static final int THIRST = 2;
    public static final int FOURTH = 3;

    public static final int DEFAULT_TL_TABLE_TIMER = 20;
    public static final int DEAL_TIME_ADDING = 4;
    public static final int NORMAL_TIME_ADDING = 2;
    
    public final static int TIENLEN_TYPE = 0;
    public final static int BINH_TYPE = TIENLEN_TYPE + 1;
    public final static int POKER_TYPE = BINH_TYPE + 1;
    public final static int DOMINO_TYPE = POKER_TYPE + 1;
    public final static int BATTLESHIP_TYPE = DOMINO_TYPE + 1;
    public final static int CHAT_TYPE = BATTLESHIP_TYPE + 1;

    public final static int TABLE_PLAYING_STATUS = 5;
    public final static int TABLE_LOCKING_STATUS = 6;
    
    public final static int MAX_BET_MONEY_LIMIT = 5000000;
    public final static int VIP3_MAX_BET_MONEY_LIMIT = 10000;
    
    //invite player constant
    public final static int FREE_PLAYER_LIST = 0;
    public final static int FREE_FRIEND_LIST = 1;
    public final static int FREE_BEST_PLAYER_LIST = 2;
    public final static int NUMBER_PLAYERS_PER_PAGE = 5;
    
    
    //FEE RATE
    public final static float MIN_BET_TO_FEE = 100;
    public final static float FEE_RATE_NORMAL_PER_GAME = (float) 4 / 100;
    public final static float FEE_RATE_VIP_PER_GAME = (float) 2 / 100;
    public final static float WINNER_FEE_RATE_VIP = (float) 3 / 100;
    public final static float WINNER_FEE_RATE_NORMAL = (float) 5 / 100;
    
    
    //****LOG_USER_BALANCE
    //SERVICE ID TO LOG USER_BALANCE
    public final static int TIEN_LEN_SERVICE_ID = 0;
    public final static int PHOM_SERVICE_ID = 1;
    public final static int BINH_SERVICE_ID = 2;
    public final static int BATTLESHIP_SERVICE_ID = 3;
    public final static int DOMINO_SERVICE_ID = 4;
    public final static int POKER_SERVICE_ID = 5;
    public final static int ITEM_SERVICE_ID = 10;
    public final static int CARD_SERVICE_ID = 11;
    //difference_amount TYPE
    public final static int PvP_MONEY_TYPE = 0;
    public final static int ADMIN_MONEY_TYPE = 1;
    public final static int TRANFER_MONEY_TYPE = 2;
    public final static int FEE_MONEY_TYPE = 3;
    public final static int BANKRUPT_SUPPORT_MONEY_TYPE = 4;
    public final static int PURCHASE_MONEY_TYPE = 5;
    public final static int SMS_MONEY_TYPE = 10;
    public final static int CARD_MONEY_TYPE = 11;
    public final static int DAILY_MONEY_TYPE = 100;
    public final static int CARD_EVENT_MONEY_TYPE = 101;
    public final static int INTRODUCE_EVENT_MONEY_TYPE = 102;    
    
}
